package edu.scau.misp.backend_module.domain;

import org.springframework.stereotype.Component;

@Component
public class Deal {
    private Long dealId;
    private Long dealSn;
    private  String dealName;
    private Long categoryId;
    private Long dealPrice;
    private String dealDescription;
    private Category category;

    private String imageUrl;

    @Override
    public String toString() {
        return "Deal{" +
                "dealId=" + dealId +
                ", dealSn=" + dealSn +
                ", dealName='" + dealName + '\'' +
                ", categoryId=" + categoryId +
                ", dealPrice=" + dealPrice +
                ", dealDescription='" + dealDescription + '\'' +
                ", category=" + category +
                '}';
    }

    public Deal() {
    }

    public Deal(Long dealId, Long dealSn, String dealName, Long categoryId, Long dealPrice, String dealDescription, Category category) {
        this.dealId = dealId;
        this.dealSn = dealSn;
        this.dealName = dealName;
        this.categoryId = categoryId;
        this.dealPrice = dealPrice;
        this.dealDescription = dealDescription;
        this.category = category;
    }

    public Long getDealId() {
        return dealId;
    }

    public void setDealId(Long dealId) {
        this.dealId = dealId;
    }

    public Long getDealSn() {
        return dealSn;
    }

    public void setDealSn(Long dealSn) {
        this.dealSn = dealSn;
    }

    public String getDealName() {
        return dealName;
    }

    public void setDealName(String dealName) {
        this.dealName = dealName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(Long dealPrice) {
        this.dealPrice = dealPrice;
    }

    public String getDealDescription() {
        return dealDescription;
    }

    public void setDealDescription(String dealDescription) {
        this.dealDescription = dealDescription;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }
}
